﻿using Adnc.Application.Shared.Dtos;
using System;
using System.Collections.Generic;
using System.Text;

namespace WYT.Pro.Application.Contracts.Dtos.Product
{
    /// <summary>
    /// 商品数量修改
    /// </summary>
    public class ProductNumChangeDto : IDto
    {
        /// <summary>
        /// 改变类型 1：购买改变 -1:订单回滚改变
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 商品
        /// </summary>
        public IEnumerable<ChangeDto> Product { get; set; }

        /// <summary>
        /// 赠品
        /// </summary>
        public IEnumerable<ChangeDto> Gift { get; set; }
    }

    /// <summary>
    /// 商品信息
    /// </summary>
    public class ChangeDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Num { get; set; }
    }
}
